RemoveRange Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes a range of items at the given index in the Deque. All items at indexes greater than index move down count indices in the Deque.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public void RemoveRange(
	int index,
	int count
)
Visual Basic (Declaration)
Public Sub RemoveRange ( _
	index As Integer, _
	count As Integer _
)
Visual C++
public:
void RemoveRange (
	int index, 
	int count
)

Parameters

index
Int32
The index in the list to remove the range at. The first item in the list has index 0.
count
Int32
The number of items to remove.

Remarks

The amount of time to delete count items in the Deque is proportional to the distance of index from the closest end of the Deque, plus count: O(count + Min(index, Count - 1 - index)).

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptionindex is less than zero or greater than or equal to Count, or count is less than zero or too large.

See Also